import {
    AuthResponseInterceptor,
    enableAuthResponseInterceptor,
    enableJwtRequestInterceptor,
    JwtRequestInterceptor,
} from 'geminis-react';
import { RequestConfig } from '@umijs/max';

enableAuthResponseInterceptor();
enableJwtRequestInterceptor();

export const request: RequestConfig = {
    requestInterceptors: [JwtRequestInterceptor],
    responseInterceptors: [AuthResponseInterceptor],
};
